package com.sskj.fabi.bean;

import com.github.tifezh.kchartlib.utils.NumberUtil;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class OrderDetailBean {
    /**
     * buyId : 0
     * cancelId : 0
     * cancelTime : 2018-11-28T06:23:30.701Z
     * checkTime : 2018-11-28T06:23:30.701Z
     * command : string
     * countDownTime : string
     * createTime : 2018-11-28T06:23:30.701Z
     * dealEntrustNo : string
     * entrustNo : string
     * fee : 0
     * id : 0
     * isDeleted : false
     * payTime : 2018-11-28T06:23:30.701Z
     * payType : string
     * price : 0
     * refer : 0
     * remarkInfo : string
     * sellId : 0
     * status : string
     * stockUserPayWays : [{"address":"string","aliImg":"string","alipayAccount":"string","bankCardExpiredTime":"2018-11-28T06:23:30.701Z","bankCardImg":"string","bankCardNo":"string","bankCardOpenBank":"string","bankCardType":"string","bankCardTypeCode":"string","bankCardUnionNo":"string","city":"string","county":"string","createTime":"2018-11-28T06:23:30.701Z","disable":false,"id":0,"idCardNo":"string","isDelete":false,"payType":"string","province":"string","stockUserId":0,"wxAccount":"string","wxImg":"string"}]
     * timestamp : 2018-11-28T06:23:30.701Z
     * totalNum : 0
     * totalPrice : 0
     * type : string
     * username : string
     */
    private String notes;
    private String buyId;
    private String cancelId;
    private String cancelTime;
    private String checkTime;
    private String command;
    private long countDownTime;
    private String createTime;
    @SerializedName(value = "dealEntrustNo", alternate = "order_num")
    private String dealEntrustNo;
    private String entrustNo;
    private String fee;
    private String id;
    private boolean isDeleted;
    private String payTime;
    private String payType;
    private String price;
    private String refer;
    private String remarkInfo;
    private String sellId;
    private int status;
    private String timestamp;
    @SerializedName(value = "totalNum", alternate = "total_num")
    private String totalNum;
    @SerializedName(value = "totalPrice", alternate = "total_price")
    private String totalPrice;
    private String type;
    private String sellUsername;
    private long down_time;
    private long qr_time;
    private String oop_mobile;
    private long fk_time;

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public long getFk_time() {
        return fk_time;
    }

    public void setFk_time(long fk_time) {
        this.fk_time = fk_time;
    }

    public String getOop_mobile() {
        return oop_mobile;
    }

    public void setOop_mobile(String oop_mobile) {
        this.oop_mobile = oop_mobile;
    }

    public String getOop_account() {
        return oop_account;
    }

    public void setOop_account(String oop_account) {
        this.oop_account = oop_account;
    }

    private String oop_account;


    public long getDown_time() {
        return down_time;
    }

    public void setDown_time(long down_time) {
        this.down_time = down_time;
    }

    public long getQr_time() {
        return qr_time;
    }

    public void setQr_time(long qr_time) {
        this.qr_time = qr_time;
    }

    public String getOop_name() {
        return oop_name;
    }

    public void setOop_name(String oop_name) {
        this.oop_name = oop_name;
    }

    private String buyUsername;
    @SerializedName(value = "stockUserPayWays", alternate = "pay_list")
    private List<StockUserPayWaysBean> stockUserPayWays;
    private StockUserPayWaysBean pay_type;
    private String oop_name;


    public StockUserPayWaysBean getPay_type() {
        return pay_type;
    }

    public void setPay_type(StockUserPayWaysBean pay_type) {
        this.pay_type = pay_type;
    }

    public String getSellUsername() {
        return sellUsername.charAt(0) + "**";
    }

    public void setSellUsername(String sellUsername) {
        this.sellUsername = sellUsername;
    }

    public String getBuyUsername() {
        return buyUsername.charAt(0) + "**";
    }

    public void setBuyUsername(String buyUsername) {
        this.buyUsername = buyUsername;
    }

    public String getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(String cancelTime) {
        this.cancelTime = cancelTime;
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public long getCountDownTime() {
        return countDownTime;
    }

    public void setCountDownTime(long countDownTime) {
        this.countDownTime = countDownTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDealEntrustNo() {
        return dealEntrustNo;
    }

    public void setDealEntrustNo(String dealEntrustNo) {
        this.dealEntrustNo = dealEntrustNo;
    }

    public String getEntrustNo() {
        return entrustNo;
    }

    public void setEntrustNo(String entrustNo) {
        this.entrustNo = entrustNo;
    }

    public String getFee() {
        return fee;
    }

    public void setFee(String fee) {
        this.fee = fee;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public String getPrice() {
        return NumberUtil.keepMax2(price);
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getRefer() {
        return refer;
    }

    public void setRefer(String refer) {
        this.refer = refer;
    }

    public String getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }


    public String getRemarkInfo() {
        return remarkInfo;
    }

    public void setRemarkInfo(String remarkInfo) {
        this.remarkInfo = remarkInfo;
    }

    public String getBuyId() {
        return buyId;
    }

    public void setBuyId(String buyId) {
        this.buyId = buyId;
    }

    public String getCancelId() {
        return cancelId;
    }

    public void setCancelId(String cancelId) {
        this.cancelId = cancelId;
    }

    public String getSellId() {
        return sellId;
    }

    public void setSellId(String sellId) {
        this.sellId = sellId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public List<StockUserPayWaysBean> getStockUserPayWays() {
        return stockUserPayWays;
    }

    public void setStockUserPayWays(List<StockUserPayWaysBean> stockUserPayWays) {
        this.stockUserPayWays = stockUserPayWays;
    }

    public static class StockUserPayWaysBean {

        /**
         * id : 1
         * name : 周俊发
         * number : 1
         * img : http://47.244.174.130/123456aa
         * type : wx
         * status : 0
         * img2 : 123456aa
         * tip : 微信
         */

        private String id;
        private String name;
        private String number;
        private String img;
        private String type;
        private String status;
        private String img2;
        private String tip;
        /**
         * bank : Zhongguoyinhang
         * branch : null
         */

        private String bank;
        private String branch;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getImg2() {
            return img2;
        }

        public void setImg2(String img2) {
            this.img2 = img2;
        }

        public String getTip() {
            return tip;
        }

        public void setTip(String tip) {
            this.tip = tip;
        }

        public String getBank() {
            return bank;
        }

        public void setBank(String bank) {
            this.bank = bank;
        }

        public String getBranch() {
            return branch;
        }

        public void setBranch(String branch) {
            this.branch = branch;
        }
    }
}
